<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
	</head>
	<body>
		<input id="inputId" type="text" value=""/><br/>
		<button onclick="clickMe()">点我</button>
		
		<script type="text/javascript">
			function clickMe() {
				console.log('clickMe');
				//var input = document.getElementById('inputId');
				//input.value = 23;
				//var value = input.value;
				var value = document.getElementById('inputId').value;
				console.log(value);
			}
		</script>
	</body>
</html>